
       <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta http-equiv="x-ua-compatible" content="ie=edge">
        <title>Current Status and Future of the Automotive Industry - OnlineX</title>
        <meta content="Current Status and Future of the Automotive Industry" name="keywords">
        <meta content="Current Status and Future of the Automotive Industry" name="description">
        <meta property="og:url" content="https://onlinexzone.com/detail/auto/Current-Status-and-Future-of-the-Automotive-Industry/">
        <meta content="https://onlinexzone.com/assets/news/category/auto/3.webp" property="og:image">
        <link rel="canonical" href="https://onlinexzone.com/detail/auto/Current-Status-and-Future-of-the-Automotive-Industry/">
        <meta name="viewport"
            content="width=device-width,initial-scale=1,user-scalable=yes">
        <link rel="icon" type="image/png" href="https://onlinexzone.com/assets/favicon.ico">
        <!-- Google Tag Manager -->
        <script>(function (w, d, s, l, i) {
            w[l] = w[l] || []; w[l].push({
                'gtm.start':
                    new Date().getTime(), event: 'gtm.js'
            }); var f = d.getElementsByTagName(s)[0],
                j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : ''; j.async = true; j.src =
                    'https://www.googletagmanager.com/gtm.js?id=' + i + dl; f.parentNode.insertBefore(j, f);
        })(window, document, 'script', 'dataLayer', 'GTM-WQKS4BKW');</script>
        <!-- End Google Tag Manager -->
        <meta name="msapplication-TileColor" content="#808080">
        <meta name="msapplication-config"
            content="/wp-content/uploads/ico/browserconfig.xml">
        <meta name="theme-color" content="#808080">

        <link rel="stylesheet" href="https://onlinexzone.com/detail/index.css">
        <!-- <title> onlinexzone.com</title> -->
        <meta name='robots' content='max-image-preview:large' />
        <meta property='og:type' content='article'>
        <meta property='og:title' content='a nice news station'>

        <meta property='og:locale' content='en_US'>
        <meta property='og:site_name' content='onlinexzone.com'>
        <!-- 这里放在线图 -->
        <meta property='og:image:width' content='868'>
        <meta property='og:image:height' content='1300'>
        <meta property='author' content='Ryan Pratt'>
        <meta property='twitter:label1' content='Written By'>
        <meta property='twitter:data1' content='Ryan Pratt'>
        <meta property='twitter:label2' content='Est. reading time'>

        <link rel="stylesheet" href="https://onlinexzone.com/category/public/public.css">
        <link rel="canonical" href="https://onlinexzone.com/" />
        <!-- 换在线logo -->
        <meta name="msapplication-TileImage"
            content="https://onlinexzone.com/assets/logo.png" />
        <script async
            src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-6907038225839490"
            crossorigin="anonymous"></script>
    </head>

    <body
        class="bi-pagetype-single post-template-default single single-post postid-22807 single-format-standard unified-pagetype-single unified-template-single unified-lang-en_US">
        <!-- noscript -->
        <noscript>
            <div class="no-js__notice">
                This website works best with JavaScript enabled. </div>
        </noscript>
        <!-- <a id="page-top" tabindex='-1'></a>
    <a class="skip-main" href="#main">Skip to main content</a> -->

         <div class="popout">
        <a class="popout__logo" href="https://onlinexzone.com/" aria-label="Go to onlinexZone Homepage">
            <img alt="onlinexZone logo" src="https://onlinexzone.com/assets/logo.png" class="popout__logo-image" width="160"
                height="30.06" />
        </a>

        <button class="popout__close" type="button" aria-label="Close Menu">

        </button>


        <nav class="popout-nav" aria-label="Pop Out Site Menu">
            <ul id="menu-popout-menu-english" class="popout-nav__list">
                <li id="menu-item-11654"
                    class="menu-item menu-item-type-taxonomy menu-item-object-category popout-nav__item menu-item-11654">
                    <a class="popout-nav__link" target="_parent"
                        href="https://onlinexzone.com/category/health/">Health</a>
                </li>
                <li id="menu-item-11659"
                    class="menu-item menu-item-type-taxonomy menu-item-object-category popout-nav__item menu-item-11659">
                    <a class="popout-nav__link" target="_parent"
                        href="https://onlinexzone.com/category/travel/">Travel</a>
                </li>
                <li id="menu-item-11657"
                    class="menu-item menu-item-type-taxonomy menu-item-object-category popout-nav__item menu-item-11657">
                    <a class="popout-nav__link" target="_parent"
                        href="https://onlinexzone.com/category/auto/">Auto</a>
                </li>
                <li id="menu-item-11655"
                    class="menu-item menu-item-type-taxonomy menu-item-object-category popout-nav__item menu-item-11655">
                    <a class="popout-nav__link" target="_parent"
                        href="https://onlinexzone.com/category/finance/">Finance</a>
                </li>
                <li id="menu-item-11656"
                    class="menu-item menu-item-type-taxonomy menu-item-object-category popout-nav__item menu-item-11656">
                    <a class="popout-nav__link" target="_parent"
                        href="https://onlinexzone.com/category/tech/">Tech</a>
                </li>
            </ul>
            <nav class="popout-secondary-nav" aria-label="Pop Out Privacy Menu" style="padding: 0;">
                <ul id="menu-popout-privacy-menu-english" class="popout-secondary-nav__list cmp__menu">
                    <li id="menu-item-11660"
                        class="menu-item menu-item-type-custom menu-item-object-custom popout-secondary-nav__item menu-item-11660">
                        <a class="popout-nav__link" target="_blank"
                            href="https://docs.google.com/document/d/17ydjwONuPcDChPCnV-DVzH6hqOB58B8TwUffEQvUYd4/pub">Privacy
                            Policy</a>
                    </li>

                </ul>
            </nav>
            <!-- <iframe src="https://onlinexzone.com/components/SidebarNav.html" style="height: 80vh;" frameborder="0" width="400px"></iframe> -->
        </nav>

    </div>
    <div class="overlay"></div>
    <header class="header">
        <!-- logo -->

        <div class="logoBox">
            <a class="logo" href="https://onlinexzone.com" target="_parent" aria-label="Go to onlinexzone.com Homepage">
                <img alt="onlinexzone.com logo" src="https://onlinexzone.com/assets/logo.png" class="logo__image" />
            </a>
            <button class="hamburger" type="button" aria-label="Show Menu"><span
                    class="hamburger__span"></span></button>
        </div>

        <!-- mobile menu toggle -->



        <!-- primary menu -->
        <nav class="nav" aria-label="Site Menu">
            <ul id="menu-primary-menu-english" class="nav__list">
                <li id="menu-item-125"
                    class="menu-item menu-item-type-taxonomy menu-item-object-category nav__item menu-item-125"><a
                        class="nav__link" target="_parent"
                        href="https://onlinexzone.com/category/health/">Health</a></li>
                <li id="menu-item-128"
                    class="menu-item menu-item-type-taxonomy menu-item-object-category nav__item menu-item-128"><a
                        class="nav__link" target="_parent"
                        href="https://onlinexzone.com/category/travel/">Travel</a></li>
                <li id="menu-item-123"
                    class="menu-item menu-item-type-taxonomy menu-item-object-category nav__item menu-item-123"><a
                        class="nav__link" target="_parent"
                        href="https://onlinexzone.com/category/auto/">Auto</a></li>
                <li id="menu-item-124"
                    class="menu-item menu-item-type-taxonomy menu-item-object-category nav__item menu-item-124"><a
                        class="nav__link" target="_parent"
                        href="https://onlinexzone.com/category/finance/">Finance</a>
                </li>
                <li id="menu-item-127"
                    class="menu-item menu-item-type-taxonomy menu-item-object-category nav__item menu-item-127"><a
                        class="nav__link" target="_parent"
                        href="https://onlinexzone.com/category/tech/">Tech</a></li>
            </ul>
        </nav>
    </header>

        <main class="main main--single-post main--featuredimage-none" id="main">
            <nav class="breadcrumb" aria-label="breadcrumb">
                <ol class="breadcrumb__list"><li class="breadcrumb__item"><a class="breadcrumb__link"
                        href="https://onlinexzone.com/">Home</a>
                </li>
                <li class="breadcrumb__item"><a class="breadcrumb__link" href="https://onlinexzone.com/category/auto/">Auto</a></li>
                </ol>
            </nav>
            <h1 class="post-title" id="h2-0">Current Status and Future of the Automotive Industry </h1>

            <p class="post-read-time">10 minutes read </p>

            <div class="author-info">
                <div class="author-info__avatar" style>
                    <img width="150" height="150"
                        src="https://onlinexzone.com/assets/news/earth.png"
                        class="author-info__avatar-image" alt
                        decoding="async"
                        srcset="https://onlinexzone.com/assets/news/earth.png 400w"
                        sizes="(max-width: 150px) 100vw, 150px" />
                </div>

                <p class="author-info__author" data-post-date="Nov 21, 2023"
                    data-updated-date="Nov 21, 2023">By <span
                        class="author-info__author-name">
                         Lucas Jackson
                        </span>
                </p>

            </div>

            <nav class="toc toc--sticky">
                <div class="toc__container">
                    <h2 class="toc__heading">Table of Contents</h2>
                    <button class="toc__toggle" type="button"
                        aria-label="Close Table of Contents">
                        <svg class="toc__toggle-icon" t="1725620702467"
                            class="icon" viewBox="0 0 1024 1024" version="1.1"
                            xmlns="http://www.w3.org/2000/svg" p-id="5202"
                            width="16" height="16"><path
                                d="M103.36376499999994 666.3830590000001L485.707294 284.039529a65.445647 65.445647 0 0 1 22.467765-7.105427357601002e-15L890.5185880000001 666.383059c1.2950590000000006 2.9515289999999994 1.3552940000000042 11.264 5.329070518200751e-15 22.497882000000004l-44.995763999999994 44.96564700000001c-11.745881999999998 1.295059000000002-20.208940999999996 1.3552940000000042-22.467765 7.105427357601002e-15l-314.88000000000005-314.84988199999987a20.178824 20.178824 0 0 0-22.467765 7.105427357601002e-15L170.82729400000022 733.8465880000001c-2.198587999999999 1.2649410000000008-10.661647 1.385412000000004-22.497882000000004 5.329070518200751e-15l-44.96564700000002-44.96564699999998c-1.2950590000000028-11.143528999999997-1.3552940000000078-19.516235-5.329070518200751e-15-22.497882000000004z"
                                p-id="5203" fill="#FF7723"></path></svg>
                    </button>
                    <ul class="toc__list"> <li class="toc__item toc__item--bulleted">
                                  <a class="toc__link" href="#h2-0">Current Status and Future of the Automotive Industry</a>
                              </li> <li class="toc__item toc__item--bulleted">
                                  <a class="toc__link" href="#h2-1">Overview of the Automotive Industry</a>
                              </li> <li class="toc__item toc__item--bulleted">
                                  <a class="toc__link" href="#h2-2">Development History of the Automotive Industry</a>
                              </li> <li class="toc__item toc__item--bulleted">
                                  <a class="toc__link" href="#h2-3">Latest Technological Trends</a>
                              </li> <li class="toc__item toc__item--bulleted">
                                  <a class="toc__link" href="#h2-4">Market Analysis</a>
                              </li> <li class="toc__item toc__item--bulleted">
                                  <a class="toc__link" href="#h2-5">Future Development Trends</a>
                              </li> <li class="toc__item toc__item--bulleted">
                                  <a class="toc__link" href="#h2-6">Challenges and Opportunities</a>
                              </li></ul>
                </div>
            </nav>
            <article class="content" id="content"><p class="h2-0"></p><img decoding="async"
                class="cdn-ih size-large wp-image-22810" width="1200" height="530"
                srcset="https://onlinexzone.com/assets/news/category/auto/3.webp"
                sizes="(max-width:576px) 30vw, (max-width:992px) 50vw, (max-width:1400px) 100vw, 900w"
                data-url="https://onlinexzone.com/assets/news/category/auto/3.webp" data-attr="https://onlinexzone.com/assets/news/category/auto/3.webp"
                src="https://onlinexzone.com/assets/news/category/auto/3.webp" loading="lazy" alt="Current Status and Future of the Automotive Industry"><h2 class="bulleted" id="h2-1">Overview of the Automotive Industry</h2>
                    <p>The automotive industry is a crucial pillar of the national economy, characterized by its long industrial chain, high correlation, and strong driving force. It encompasses automobile production, sales, after-sales service, and value-added services like car beauty. In recent years, with continuous technological advancements and policy support, the automotive industry has made significant progress globally.</p><h2 class="bulleted" id="h2-2">Development History of the Automotive Industry</h2>
                    <p>The development of the automotive industry can be traced back to the late 19th century. China’s automotive industry began in 1953 with the establishment of the First Automobile Works. Since then, it has undergone a tremendous transformation from scratch and from small to large. After the reform and opening up, the establishment of joint ventures further promoted technology introduction and industrial upgrading. In the 21st century, China’s automotive market has rapidly risen to become one of the largest in the world.</p><h2 class="bulleted" id="h2-3">Latest Technological Trends</h2>
                    <p>In 2024, the technological development of the automotive industry shows a diversified trend. Technologies such as large language models, air suspension, urban NOA (Navigation On Autopilot), unmanned parking, and full-domain 800V architecture are gradually becoming popular. These technologies not only enhance the intelligence level of automobiles but also significantly improve user experience.</p><h2 class="bulleted" id="h2-4">Market Analysis</h2>
                    <p>In 2023, China’s automotive market sales reached 26.938 million units, a year-on-year increase of 10.8%. Among them, the sales of new energy vehicles were particularly significant, reaching 8.304 million units, a year-on-year increase of 36.7%. It is expected that in 2024, China’s automotive market will continue to maintain a growth trend, with total sales expected to reach 31 million units.</p><h2 class="bulleted" id="h2-5">Future Development Trends</h2>
                    <p>In the future, new energy vehicles and intelligent connected vehicles will become the dominant directions of industry development. With policy support and technological advancements, the penetration rate of new energy vehicles will further increase. The development of intelligent connected technology will promote the widespread application of autonomous driving and vehicle networking. Additionally, the globalization of the automotive industry and industrial chain cooperation will further deepen.</p><h2 class="bulleted" id="h2-6">Challenges and Opportunities</h2>
                    <p>Although the automotive industry faces challenges in technological innovation, brand building, and internationalization, its strong resilience and growth potential provide ample space for future development. Companies need to continuously innovate and improve product quality and service levels to cope with increasingly fierce market competition.</p>
            </article>
            <aside class="sidebar sidebar--single-post">
                <!-- 文章右侧top1展示广告 -->

                <!-- <div class="sidebar__block sidebar__ad-space sidebar__ad-space--dfp-desktop-sidebar-top hidden-on-mobile">
                <div class="hidden-on-mobile" id="dfp-desktop-sidebar-top">
                    <script async
                        src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-6907038225839490"
                        crossorigin="anonymous"></script>
                    <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-6907038225839490"
                        data-ad-slot="2838871277" data-ad-format="auto" data-full-width-responsive="true"></ins>
                    <script>
                        (adsbygoogle = window.adsbygoogle || []).push({});
                    </script>
                </div>
            </div> -->
                <div class="sidebar__block">
                    <h2 class="section__heading section__heading--variation-3">
                        Related Posts </h2>
                    <div class="post-module post-module--variation-3">
<article class="post-module__item">
                         <a class="post-module__thumb-link" href="https://onlinexzone.com/detail/auto/A-Journey-of-Speed--Exploring-the-World-of-MotoGP/">
                             <span class="screen-reader-text">A Journey of Speed: Exploring the World of MotoGP</span>
                             <img loading='lazy' src=https://onlinexzone.com/assets/news/category/auto/1.webp?image_process=quality,q_5'
                                 data-attr=https://onlinexzone.com/assets/news/category/auto/1.webp?image_process=quality,q_5'
                                 data-url=https://onlinexzone.com/assets/news/category/auto/1.webp?image_process=quality,q_5'
                                 sizes='(max-width:576px) 30vw, (max-width:992px) 50vw, (max-width:1400px) 100vw, 900w'
                                 width="600" height="315" data-src="https://onlinexzone.com/assets/news/category/auto/1.webp?image_process=quality,q_5"
                                 class="cdn-ih post-module__thumb wp-post-image" alt="" decoding="async"
                                 srcset="https://onlinexzone.com/assets/news/category/auto/1.webp?image_process=quality,q_5"
                                 sizes="(max-width: 600px) 100vw, 600px" /><noscript><img width="600" height="315"
                                     src="https://onlinexzone.com/assets/news/category/auto/1.webp?image_process=quality,q_5"
                                     class="post-module__thumb wp-post-image" alt="" decoding="async"
                                     srcset="https://onlinexzone.com/assets/news/category/auto/1.webp?image_process=quality,q_5"
                                     sizes="(max-width: 600px) 100vw, 600px" /></noscript> </a>
                         <a class="post-module__category-link" href="https://onlinexzone.com/detail/auto/A-Journey-of-Speed--Exploring-the-World-of-MotoGP/"
                             aria-label="More from Health">
                             <span class="post-module__category">auto</span>
                         </a>
                         <h3 class="post-module__heading">
                             <a class="post-module__heading-link" href="https://onlinexzone.com/detail/auto/A-Journey-of-Speed--Exploring-the-World-of-MotoGP/">A Journey of Speed: Exploring the World of MotoGP</a>
                         </h3>
                         <div class="post-module__description">
                             <p>A Journey of Speed: Exploring the World of MotoGP [&hellip;]</p>
                         </div>
                         <a class="post-module__button"
                             href="https://onlinexzone.com/detail/auto/A-Journey-of-Speed--Exploring-the-World-of-MotoGP/">Read More<span
                                 class="screen-reader-text"> about What You Need To Know About Juicing</span></a>
                         <p class="post-module__read-time">4 minute read</p>
                     </article><article class="post-module__item">
                         <a class="post-module__thumb-link" href="https://onlinexzone.com/detail/auto/Reasons-for-Seniors-Prefer-Hyundai-IONIQ-5-in-2024/">
                             <span class="screen-reader-text">Reasons for Seniors Prefer Hyundai IONIQ 5 in 2024</span>
                             <img loading='lazy' src=https://onlinexzone.com/assets/news/category/auto/12.webp?image_process=quality,q_5'
                                 data-attr=https://onlinexzone.com/assets/news/category/auto/12.webp?image_process=quality,q_5'
                                 data-url=https://onlinexzone.com/assets/news/category/auto/12.webp?image_process=quality,q_5'
                                 sizes='(max-width:576px) 30vw, (max-width:992px) 50vw, (max-width:1400px) 100vw, 900w'
                                 width="600" height="315" data-src="https://onlinexzone.com/assets/news/category/auto/12.webp?image_process=quality,q_5"
                                 class="cdn-ih post-module__thumb wp-post-image" alt="" decoding="async"
                                 srcset="https://onlinexzone.com/assets/news/category/auto/12.webp?image_process=quality,q_5"
                                 sizes="(max-width: 600px) 100vw, 600px" /><noscript><img width="600" height="315"
                                     src="https://onlinexzone.com/assets/news/category/auto/12.webp?image_process=quality,q_5"
                                     class="post-module__thumb wp-post-image" alt="" decoding="async"
                                     srcset="https://onlinexzone.com/assets/news/category/auto/12.webp?image_process=quality,q_5"
                                     sizes="(max-width: 600px) 100vw, 600px" /></noscript> </a>
                         <a class="post-module__category-link" href="https://onlinexzone.com/detail/auto/Reasons-for-Seniors-Prefer-Hyundai-IONIQ-5-in-2024/"
                             aria-label="More from Health">
                             <span class="post-module__category">auto</span>
                         </a>
                         <h3 class="post-module__heading">
                             <a class="post-module__heading-link" href="https://onlinexzone.com/detail/auto/Reasons-for-Seniors-Prefer-Hyundai-IONIQ-5-in-2024/">Reasons for Seniors Prefer Hyundai IONIQ 5 in 2024</a>
                         </h3>
                         <div class="post-module__description">
                             <p>Reasons for Seniors Prefer Hyundai IONIQ 5 in 2024 [&hellip;]</p>
                         </div>
                         <a class="post-module__button"
                             href="https://onlinexzone.com/detail/auto/Reasons-for-Seniors-Prefer-Hyundai-IONIQ-5-in-2024/">Read More<span
                                 class="screen-reader-text"> about What You Need To Know About Juicing</span></a>
                         <p class="post-module__read-time">4 minute read</p>
                     </article><article class="post-module__item">
                         <a class="post-module__thumb-link" href="https://onlinexzone.com/detail/auto/The-Charm-of-Formula-Racing/">
                             <span class="screen-reader-text">The Charm of Formula Racing</span>
                             <img loading='lazy' src=https://onlinexzone.com/assets/news/category/auto/6.webp?image_process=quality,q_5'
                                 data-attr=https://onlinexzone.com/assets/news/category/auto/6.webp?image_process=quality,q_5'
                                 data-url=https://onlinexzone.com/assets/news/category/auto/6.webp?image_process=quality,q_5'
                                 sizes='(max-width:576px) 30vw, (max-width:992px) 50vw, (max-width:1400px) 100vw, 900w'
                                 width="600" height="315" data-src="https://onlinexzone.com/assets/news/category/auto/6.webp?image_process=quality,q_5"
                                 class="cdn-ih post-module__thumb wp-post-image" alt="" decoding="async"
                                 srcset="https://onlinexzone.com/assets/news/category/auto/6.webp?image_process=quality,q_5"
                                 sizes="(max-width: 600px) 100vw, 600px" /><noscript><img width="600" height="315"
                                     src="https://onlinexzone.com/assets/news/category/auto/6.webp?image_process=quality,q_5"
                                     class="post-module__thumb wp-post-image" alt="" decoding="async"
                                     srcset="https://onlinexzone.com/assets/news/category/auto/6.webp?image_process=quality,q_5"
                                     sizes="(max-width: 600px) 100vw, 600px" /></noscript> </a>
                         <a class="post-module__category-link" href="https://onlinexzone.com/detail/auto/The-Charm-of-Formula-Racing/"
                             aria-label="More from Health">
                             <span class="post-module__category">auto</span>
                         </a>
                         <h3 class="post-module__heading">
                             <a class="post-module__heading-link" href="https://onlinexzone.com/detail/auto/The-Charm-of-Formula-Racing/">The Charm of Formula Racing</a>
                         </h3>
                         <div class="post-module__description">
                             <p>The Charm of Formula Racing [&hellip;]</p>
                         </div>
                         <a class="post-module__button"
                             href="https://onlinexzone.com/detail/auto/The-Charm-of-Formula-Racing/">Read More<span
                                 class="screen-reader-text"> about What You Need To Know About Juicing</span></a>
                         <p class="post-module__read-time">4 minute read</p>
                     </article></div>
                </div>
                <!-- 文章右侧top2下方广告 -->
                <!-- <div class="sidebar__block sidebar__ad-space hidden-on-mobile" id="dfp-desktop-sidebar-mid-1">
                <script async
                    src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-6907038225839490"
                    crossorigin="anonymous"></script>
                <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-6907038225839490"
                    data-ad-slot="3814738147" data-ad-format="auto" data-full-width-responsive="true"></ins>
                <script>
                    (adsbygoogle = window.adsbygoogle || []).push({});
                </script>
            </div> -->

            </aside>
        </main>
   
        <!-- 底部版权 -->
        
    </body>
    <!-- Google Tag Manager (noscript) -->
    <noscript><iframe
            src="https://www.googletagmanager.com/ns.html?id=GTM-WQKS4BKW"
            height="0" width="0"
            style="display:none;visibility:hidden"></iframe></noscript>
    <!-- End Google Tag Manager (noscript) -->


    <script src="https://onlinexzone.com/utils/jquery.js"></script>
    <script type="module">
    import {getAllUrlParams, addHeadElment, newsTypeObj} from '../../../utils/common.js'
    window.onload = function () {
       
    }

</script>

    <script>
    // 隐藏侧边导航栏
    const popout = document.querySelector('.popout')
    // 关闭按钮
    const popout__close = document.querySelector('.popout__close')
    // 遮罩
    const overlay = document.querySelector('.overlay')
    const hamburger = document.querySelector('.hamburger')

    // 手机端导航栏下拉按钮
    const toc__toggle = document.querySelector('.toc__toggle')
    const toc__toggle_close = document.querySelector('.toc__toggle_close')

    const activeSvg = document.querySelector('.toc__toggle-icon')
    const navBox = document.querySelector('.toc--sticky')
    
    const toc__list = document.querySelector('.toc__list')
    
    let activeFlag = true
    toc__toggle.addEventListener('click',function (event) {
        if(activeFlag){
            navBox.classList.add("toc--active");
            activeSvg.classList.add("up")
        }else{
            navBox.classList.remove("toc--active");
            activeSvg.classList.remove("up")
        }
        activeFlag = !activeFlag
        
    })
    toc__list.addEventListener('click',function () {
        navBox.classList.remove("toc--active");
        activeSvg.classList.remove("up")
    })
   

    hamburger.addEventListener('click', function () {
        blockAside();
    })
    popout__close.addEventListener('click', function () {
        // 不知道为啥添加上反而没效果，仅限于3级页面没效果，2级和1级有
        popout.classList.remove("popout--visible");
        overlay.classList.remove("overlay--visible")
        popout__close.classList.remove("popout__close--active")

    })
    function blockAside() {
        popout.classList.add("popout--transition", "popout--visible");
        overlay.classList.add("overlay--visible")
        popout__close.classList.add("popout__close--active")
        console.log('我是父页面的方法')
    }
    // 监听主题变化做的事
    let mqList = window.matchMedia('(prefers-color-scheme: dark)');
    const logoImg = document.querySelector('.logo__image')
    function switchColor() {
        if (mqList.matches) {
            // logoImg.src = logoImg.src.split('.png')[0] + '_dark' + '.png'
        }
    }
    switchColor()

    mqList.addEventListener('change', (event) => {
        // is dark mode
        if (event.matches) {
            switchColor()
        } else {
            // not dark mode
        }
    });

</script>

</html>
       